﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HMS.Common;
using System.Data;

namespace HMS.BL
{

    public class xref
    {
        public object value { get; set; }
        public Boolean bsource { get; set; }
    }    
    
    
    public class DimensionMFields
    {

        public string name { get; set; }
        public string value { get; set; }
        public int size { get; set; }
        public string datatype { get; set; }
        public string is_req { get; set; }
        public string prec { get; set; }
        public string control_type { get; set; }
        public string control_name { get; set; }
        public int xref_id { get; set; }

        public List<DropdownListItem> fielddrp_item { get; set; }
        //public List<object> xref_value { get; set; }
        public List<xref> xrefArr_value { get; set; }
        public object[] grayArr_value { get; set; } 
        
        public DimensionMFields()
        { }

        public DimensionMFields(string name, string value, string datatype, string is_req, string prec, string control_type, int size)
        {
            this.name = name;
            this.value = value;
            this.datatype = datatype;
            this.is_req = is_req;
            this.prec = prec;
            this.control_type = control_type;
            this.fielddrp_item = fielddrp_item;
            this.size = size;
        }

        public DimensionMFields(string name, string value, string datatype, string is_req, string prec, int size,string control_type, List<DropdownListItem> fielddrp_item)
        {
            this.name = name;
            this.value = value;
            this.datatype = datatype;
            this.is_req = is_req;
            this.prec = prec;
            this.control_type = control_type;
            this.fielddrp_item = fielddrp_item;
            this.size = size;
        }

        public DimensionMFields(string name, string value,int size,string datatype, string is_req, string prec, string control_type, List<DropdownListItem> fielddrp_item, List<xref> xrefArr_value)
        {
            this.name = name;
            this.value = value;
            this.datatype = datatype;
            this.is_req = is_req;
            this.prec = prec;
            this.control_type = control_type;
            this.fielddrp_item = fielddrp_item;
            this.xrefArr_value = xrefArr_value;
            this.size = size;
        }

        public DimensionMFields(string name, string value, int size, string datatype, string is_req, string prec, string control_type, List<DropdownListItem> fielddrp_item, List<xref> xrefArr_value, object[] grayArr_value)
        {
            this.name = name;
            this.value = value;
            this.datatype = datatype;
            this.is_req = is_req;
            this.prec = prec;
            this.control_type = control_type;
            this.fielddrp_item = fielddrp_item;
            this.xrefArr_value = xrefArr_value;
            this.grayArr_value = grayArr_value;
            this.size = size;
        }

        //public DimensionMFields(string name, string value, string datatype, string is_req, string prec, string control_type, List<DropdownListItem> fielddrp_item, List<DataRow> xref_rows)
        //{
        //    this.name = name;
        //    this.value = value;
        //    this.datatype = datatype;
        //    this.is_req = is_req;
        //    this.prec = prec;
        //    this.control_type = control_type;
        //    this.fielddrp_item = fielddrp_item;
        //    this.xref_rows = xref_rows;
        //}   

    }
}




